﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="sanpham.aspx.cs" Inherits="_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p>
        <asp:DataList ID="ddlSanpham" runat="server" DataKeyField="P_ID" Height="137px" 
            RepeatColumns="3" Width="453px">
            <ItemTemplate>
                <table style="width:100%;">
                    <tr>
                        <td rowspan="3">
                            <asp:Image ID="imgSp" runat="server" Height="100px" ImageAlign="Middle" 
                                ImageUrl='<%# "img/"+Eval("P_IMAGE") %>' />
                        </td>
                        <td>
                            Tên:<asp:Label ID="lblTen" runat="server" Text='<%# Eval("P_NAME") %>'></asp:Label>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            Giá:<asp:Label ID="lblGia" runat="server" Text='<%# Eval("P_PRICE") %>'></asp:Label>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            <asp:HyperLink ID="hplChitiet" runat="server" 
                                NavigateUrl='<%# "chitietsanpham.aspx?P_ID="+Eval("P_ID") %>' 
                                Text='<%# "Chi tiết..." %>'></asp:HyperLink>
                        </td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
            </ItemTemplate>
        </asp:DataList>
    </p>
</asp:Content>

